<?php

/**
 * Created with IntelliJ IDEA.
 * @Auther: 张昶
 * @Date: 2022/02/08/10:44
 * @Description:
 */

namespace app\home\controller;


use app\BaseController;
use think\facade\Session;

class Login extends BaseController
{







    //页面退出操作
    public function loginOut()
    {
        //清除缓存数据，退出到登录页面
        del_dir(runtime_path());
        $session_admin = get_config('app.session_admin');
        Session::delete($session_admin);
        return to_assign(0, "退出成功",'','/index/index');


    }

}